﻿using Newtonsoft.Json;


namespace TImSdk
{
    /// <summary>
    /// 会话信息
    /// </summary>
    public class ConvInfo
    {
        /// <summary>
        /// 只读, 会话ID
        /// </summary>
        [JsonProperty("conv_id")]
        public string Conv_Id { get;set;}
        /// <summary>
        /// 只读, 会话类型
        /// </summary>
        [JsonProperty("conv_type")]
        public TIMConvType Conv_Type { get; set; }
        /// <summary>
        /// 只读, 会话所有者
        /// </summary>
        [JsonProperty("conv_owner")]
        public string Conv_Owner { get; set; }
        /// <summary>
        ///  只读, 会话未读计数
        /// </summary>
        [JsonProperty("conv_unread_num")]
        public int Conv_Unread_Num { get; set; }
        /// <summary>
        /// 只读, 会话的激活时间
        /// </summary>
        [JsonProperty("conv_active_time")]
        public int Conv_Active_Time { get; set; }
        /// <summary>
        /// 只读, 会话是否有最后一条消息
        /// </summary>
        [JsonProperty("conv_is_has_lastmsg")]
        public bool Conv_Is_Has_LastMsg { get; set; }
        /// <summary>
        /// 会话最后一条消息
        /// </summary>
        [JsonProperty("conv_last_msg")]
        public Message Conv_Last_Msg { get; set; }
        /// <summary>
        /// 只读, 会话草稿
        /// </summary>
        [JsonProperty("conv_is_has_draft")]
        public bool Conv_Is_Has_Draft { get; set; }
        /// <summary>
        /// 只读(选填), 会话草稿
        /// </summary>
        [JsonProperty("conv_draft")]
        public string Conv_Draft { get; set; }
    }
}
